]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
quickSettings: Make parent StWidget have a 0x0 size
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 10 Nov 2022 11:06:36 +0000 (12:06 +0100)
committerMarge Bot <marge-bot@gnome.org>
Wed, 16 Nov 2022 16:51:49 +0000 (16:51 +0000)
The quick settings menu is child of an actor at 0,0 coordinates,
simply transformed to look in place. However the parent actor stays
at 0,0, and gets a width/height that is able to contain the child
menu (even though the transform will push it outside the parent
actor).

This makes the parent actor (not meant to handle pointer/touch
input) to cover parts of the shell. Since this actor is also where
the Clutter grab happens, the menu is not dismissed either.

Make this parent actor have a 0x0 size, so that it can still act
as the parent for the quick settings menu, but does not actually
cover any area. This makes clicks around the top left corner work
again while the quick settings menu is opened.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5887
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2535>

js/ui/quickSettings.js

index f407414df33f2de2c1295b8db7ecf7fcb5224c1f..19f9a3ca414ab23b0e5204bf5da783e5584d13fd 100644 (file)
@@ -582,7 +582,7 @@ var QuickSettingsMenu = class extends PopupMenu.PopupMenu {
     constructor(sourceActor, nColumns = 1) {
         super(sourceActor, 0, St.Side.TOP);
 
-        this.actor = new St.Widget({reactive: true});
+        this.actor = new St.Widget({reactive: true, width: 0, height: 0});
         this.actor.add_child(this._boxPointer);
         this.actor._delegate = this;